package com.ruibang.glass.material.controller.rqgl;


import com.ruibang.glass.material.domain.req.rq.ContainerStalesReq;
import com.ruibang.glass.material.service.rq.GMaterialContainerStaleStatisticsService;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * <p>
 * 容器呆滞统计 前端控制器
 * </p>
 *
 * @author mameng
 * @since 2024-02-05
 */

@Api(tags = "容器呆滞统计")
@RestController
@RequestMapping("/api/glass/material/container/stale/")
public class MaterialContainerStaleStatisticsController {


    @Autowired
    private GMaterialContainerStaleStatisticsService materialContainerStaleStatisticsService;

    @PostMapping("/list")
    @ApiOperation(value = "获取列表信息", response = ResultBody.class)
    public ResultBody getPageList(@RequestBody ContainerStalesReq containerStalesReq) {
        return ResultBody.success(materialContainerStaleStatisticsService.getPage(containerStalesReq));
    }

    @PostMapping("/getRqLocationStatics")
    @ApiOperation(value = "容器位置状态统计", response = ResultBody.class)
    public ResultBody getRqLocationStatics(@RequestBody ContainerStalesReq containerStalesReq) {
        return ResultBody.success(materialContainerStaleStatisticsService.getPage(containerStalesReq));
    }






}
